

<div id="images-list">

	<div class="clearfix form-inline" style="margin-bottom:5px;">
	
	<form method="get" action="/soogifs/search" >
		<input type="hidden" name="type" value="{{$_GET['type']}}">
		<input type="hidden" name="cate_id" value="{{$_GET['cate_id']}}">
	<p>
		<a href="/favorites/mine/Image?source=soogif&inajax=1" class="pull-right btn btn-xs btn-warning" data-target=".image-list"><i class="fa fa-heart-o"></i> 收藏</a>
		<a href="/images/lists?source=soogif" style="margin-right:5px;" class="pull-right btn btn-xs btn-primary {{if empty($_GET['source'])}}active{{/if}}">全部</a>	
		
		<input type="text" class="form-control" style="width:120px;height:25px;font-size:13px;" placeholder="输入关键词搜索" name="name" value="{{$_GET['name']}}" id="SearchImageName">
		<button class="btn btn-xs btn-primary" ><i class="fa fa-search"></i> 搜索动图</button>
	</p>
	</form>
	</div>
	<div class="image-list">
		{{$page_navi}}
		<div class="row ui-portlet" style="position:relative;">
	       {{loop $datalist $item}}
	       	<div id="image-{{$item['Image']['id']}}" class="col-sm-4">
	       		<div class="appmsg">
		       		<div class="cover">
		       		<?php
		       		$appendStyle = 'max-width:100%;';
	       		?>
		       		
		       		{{$this->Html->image($item['url'],array('title'=>$item['title'],'data-type'=>'gif','data-id'=>$item['Image']['id'],'data-model'=>'Image','style'=>$appendStyle))}}	       		
		       		</div>
		       		<div style="height: 34px;overflow: hidden;text-align: left;" title="{{$item['Image']['name']}}">
		       		
		       		<p style="text-align:right;"><a style="color:#999;" target="_blank" href="http://soogif.com/">来自SOOGIF</a></p>
		       		</div>
	       		</div>
	       	</div>
	  		{{/loop}}
	    </div>
	     <div class="clear:both;"></div>
    	{{$page_navi}}
    </div>   
</div>
